import request from "./http";

//详情步骤
//https://api.ecook.cn/pub/recipe/details/256196155
export function getdetailsData(id){
    return request({
        url:`pub/recipe/details/${id}`,
        method:"get",

    })
}
//其他信息
//https://api.ecook.cn/public/getRecipeInfoById.shtml
export function getRecipeInfoData(data){
    return request({
        url:"public/getRecipeInfoById.shtml",
        method:"post",
        params:data
    })
}
//评论信息
//https://api.ecook.cn/public/getCommentList.shtml
export function getCommentListData(data){
    return request({
        url:"public/getCommentList.shtml",
        method:"post",
        params:data
    })
}
//相关菜谱列表信息
//https://api.ecook.cn/public/getRecipeRelatedList.shtml
export function getRecipeRelatedListData(data){
    return request({
        url:"public/getRecipeRelatedList.shtml",
        method:"post",
        params:data
    })
}
//相关菜谱专辑列表信息
//https://api.ecook.cn/public/getCollectionSortListByRecipeId.shtml
export function getCollectionSortListData(data){
    return request({
        url:"public/getCollectionSortListByRecipeId.shtml",
        method:"post",
        params:data
    })
}